<?php
if (count($_GET) <= 0 && count($_POST) <= 0)
{
	$_d = getcwd();
	ob_start();
	chdir('lz_system');
	include('index.php');
	$out = ob_get_contents();
	chdir($_d);
	if (file_exists('index.html')) unlink('index.html');
	file_put_contents('index.html',$out);
	ob_end_flush();
}
else
{
	chdir('lz_system');
	include('index.php');
}
?>